package com.zyx.spring5msb.iocforward.factory;

import com.zyx.spring5msb.iocforward.bean.Person;

/**
 * @author Yaxi.Zhang
 * @since 2021/9/27 14:58
 * desc: 静态工厂
 */
public class PersonStaticFactory {
    public static Person getInstance(String name, Integer age) {
        Person person = new Person();
        person.setId(1);
        person.setName(name);
        person.setAge(age);
        person.setGender("man");
        return person;
    }
}
